package com.xwaiy.xwaiyrpc.fault.retry;

import com.xwaiy.xwaiyrpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * 重试策略
 * @Author Xwaiy
 * @Date 2025/9/3 14:29
 **/
public interface RetryStrategy {
    /**
     * 重试
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
